package com.heatup.apt.api.service;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Service;

import com.heatup.apt.common.exception.OrderException;
import com.heatup.apt.model.api.ApiResultModel;
import com.heatup.apt.model.user.UserInfo;
import com.heatup.apt.model.user.UserMealCoupon;


@Service
public interface MealService {
	
	/**
	 * 得到餐券总数
	 * @return
	 */
	public UserMealCoupon getMealCount(Integer userId);
	
	/**
	 * 
	 * @param request
	 * @param apiResultModel
	 * @return
	 * @throws OrderException 
	 */
	public ApiResultModel<Object> dealOrder(HttpServletRequest request, ApiResultModel<Object> apiResultModel, UserInfo userInfo) throws OrderException;
	
}
